import type { BaseTableConfig } from '@/components/base-ui/base-table/type';
import { thWordLength5, thWordLength4, widthLevel1, widthLevel2, widthLevel3 } from '@/config';

export const tableConfig: BaseTableConfig = {
    items: [
        {
            modelKey: 'orderNumber',
            columnProps: {
                label: '订单号',
                width: widthLevel2
            }
        },
        {
            modelKey: 'materialCode',
            columnProps: {
                label: '物料编码',
                width: widthLevel2
            }
        },
        {
            modelKey: 'materialName',
            columnProps: {
                label: '物料名称',
                width: widthLevel2
            }
        },
        {
            modelKey: 'manufacturingStrategy',
            columnProps: {
                label: '制造策略',
                width: thWordLength4
            }
        },
        {
            modelKey: 'productionType',
            columnProps: {
                label: '生产类型',
                width: thWordLength4
            }
        },
        {
            modelKey: 'demandQuantity',
            columnProps: {
                label: '需求数量',
                width: thWordLength4
            }
        },
        {
            modelKey: 'orderDeliveryTime',
            columnProps: {
                label: '订单交期',
                width: widthLevel3
            }
        },
        {
            modelKey: 'demandTime',
            columnProps: {
                label: '需求时间',
                width: widthLevel3
            }
        },
        {
            modelKey: 'plannedQuantity',
            columnProps: {
                label: '计划数量',
                width: thWordLength4
            }
        },
        {
            modelKey: 'immediateInventory',
            columnProps: {
                label: '实际库存',
                width: thWordLength4
            }
        },
        {
            modelKey: 'possessionInventory',
            columnProps: {
                label: '物料占用量',
                width: thWordLength5
            }
        },
        {
            modelKey: 'planStartTime',
            columnProps: {
                label: '计划开始时间',
                width: widthLevel1
            }
        },
        {
            modelKey: 'planCompletionTime',
            columnProps: {
                label: '计划结束时间',
                width: widthLevel1
            }
        },
        {
            modelKey: 'createTime',
            columnProps: {
                label: '创建时间',
                width: widthLevel1
            }
        }
    ],
    unAction: true,
    unSelection: true
};
